<?php
require "setup.php";
require "top_page.php";
?>


<h1><?php echo _("Who"); ?></h1>

<?php
	$res=who();
?>
<table class="who">
<tr><th><?php echo _("User"); ?></th><th><?php echo _("Level"); ?></th><th><?php echo _("Last activity"); ?></th><th><?php echo _("Connected From"); ?></th></tr>
<?php
for($i = 0; $i < $res["COUNT"]; $i++) {
	echo "<tr><td>".$res["$i"]["USER"]."</td><td>".$res["$i"]["LEVEL"]."</td><td>".date("d/m/Y G:i:s", time() - $res["$i"]["IDLE"])."</td><td>".$res["$i"]["FROM"]."</td></tr>";
}
?>
</table>
<?php
require "bottom_page.php";
?>
